package com.example.applyforaid.entity;

import java.util.ArrayList;
import java.util.List;

public class ClothesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ClothesExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andClothesIdIsNull() {
            addCriterion("clothes_id is null");
            return (Criteria) this;
        }

        public Criteria andClothesIdIsNotNull() {
            addCriterion("clothes_id is not null");
            return (Criteria) this;
        }

        public Criteria andClothesIdEqualTo(String value) {
            addCriterion("clothes_id =", value, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdNotEqualTo(String value) {
            addCriterion("clothes_id <>", value, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdGreaterThan(String value) {
            addCriterion("clothes_id >", value, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdGreaterThanOrEqualTo(String value) {
            addCriterion("clothes_id >=", value, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdLessThan(String value) {
            addCriterion("clothes_id <", value, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdLessThanOrEqualTo(String value) {
            addCriterion("clothes_id <=", value, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdLike(String value) {
            addCriterion("clothes_id like", value, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdNotLike(String value) {
            addCriterion("clothes_id not like", value, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdIn(List<String> values) {
            addCriterion("clothes_id in", values, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdNotIn(List<String> values) {
            addCriterion("clothes_id not in", values, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdBetween(String value1, String value2) {
            addCriterion("clothes_id between", value1, value2, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesIdNotBetween(String value1, String value2) {
            addCriterion("clothes_id not between", value1, value2, "clothesId");
            return (Criteria) this;
        }

        public Criteria andClothesSizeIsNull() {
            addCriterion("clothes_size is null");
            return (Criteria) this;
        }

        public Criteria andClothesSizeIsNotNull() {
            addCriterion("clothes_size is not null");
            return (Criteria) this;
        }

        public Criteria andClothesSizeEqualTo(String value) {
            addCriterion("clothes_size =", value, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeNotEqualTo(String value) {
            addCriterion("clothes_size <>", value, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeGreaterThan(String value) {
            addCriterion("clothes_size >", value, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeGreaterThanOrEqualTo(String value) {
            addCriterion("clothes_size >=", value, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeLessThan(String value) {
            addCriterion("clothes_size <", value, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeLessThanOrEqualTo(String value) {
            addCriterion("clothes_size <=", value, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeLike(String value) {
            addCriterion("clothes_size like", value, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeNotLike(String value) {
            addCriterion("clothes_size not like", value, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeIn(List<String> values) {
            addCriterion("clothes_size in", values, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeNotIn(List<String> values) {
            addCriterion("clothes_size not in", values, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeBetween(String value1, String value2) {
            addCriterion("clothes_size between", value1, value2, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesSizeNotBetween(String value1, String value2) {
            addCriterion("clothes_size not between", value1, value2, "clothesSize");
            return (Criteria) this;
        }

        public Criteria andClothesTypeIsNull() {
            addCriterion("clothes_type is null");
            return (Criteria) this;
        }

        public Criteria andClothesTypeIsNotNull() {
            addCriterion("clothes_type is not null");
            return (Criteria) this;
        }

        public Criteria andClothesTypeEqualTo(String value) {
            addCriterion("clothes_type =", value, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeNotEqualTo(String value) {
            addCriterion("clothes_type <>", value, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeGreaterThan(String value) {
            addCriterion("clothes_type >", value, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeGreaterThanOrEqualTo(String value) {
            addCriterion("clothes_type >=", value, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeLessThan(String value) {
            addCriterion("clothes_type <", value, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeLessThanOrEqualTo(String value) {
            addCriterion("clothes_type <=", value, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeLike(String value) {
            addCriterion("clothes_type like", value, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeNotLike(String value) {
            addCriterion("clothes_type not like", value, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeIn(List<String> values) {
            addCriterion("clothes_type in", values, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeNotIn(List<String> values) {
            addCriterion("clothes_type not in", values, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeBetween(String value1, String value2) {
            addCriterion("clothes_type between", value1, value2, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesTypeNotBetween(String value1, String value2) {
            addCriterion("clothes_type not between", value1, value2, "clothesType");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumIsNull() {
            addCriterion("clothes_selection_sum is null");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumIsNotNull() {
            addCriterion("clothes_selection_sum is not null");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumEqualTo(Integer value) {
            addCriterion("clothes_selection_sum =", value, "clothesSelectionSum");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumNotEqualTo(Integer value) {
            addCriterion("clothes_selection_sum <>", value, "clothesSelectionSum");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumGreaterThan(Integer value) {
            addCriterion("clothes_selection_sum >", value, "clothesSelectionSum");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumGreaterThanOrEqualTo(Integer value) {
            addCriterion("clothes_selection_sum >=", value, "clothesSelectionSum");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumLessThan(Integer value) {
            addCriterion("clothes_selection_sum <", value, "clothesSelectionSum");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumLessThanOrEqualTo(Integer value) {
            addCriterion("clothes_selection_sum <=", value, "clothesSelectionSum");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumIn(List<Integer> values) {
            addCriterion("clothes_selection_sum in", values, "clothesSelectionSum");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumNotIn(List<Integer> values) {
            addCriterion("clothes_selection_sum not in", values, "clothesSelectionSum");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumBetween(Integer value1, Integer value2) {
            addCriterion("clothes_selection_sum between", value1, value2, "clothesSelectionSum");
            return (Criteria) this;
        }

        public Criteria andClothesSelectionSumNotBetween(Integer value1, Integer value2) {
            addCriterion("clothes_selection_sum not between", value1, value2, "clothesSelectionSum");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdIsNull() {
            addCriterion("clothes_picture_set_id is null");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdIsNotNull() {
            addCriterion("clothes_picture_set_id is not null");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdEqualTo(String value) {
            addCriterion("clothes_picture_set_id =", value, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdNotEqualTo(String value) {
            addCriterion("clothes_picture_set_id <>", value, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdGreaterThan(String value) {
            addCriterion("clothes_picture_set_id >", value, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdGreaterThanOrEqualTo(String value) {
            addCriterion("clothes_picture_set_id >=", value, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdLessThan(String value) {
            addCriterion("clothes_picture_set_id <", value, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdLessThanOrEqualTo(String value) {
            addCriterion("clothes_picture_set_id <=", value, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdLike(String value) {
            addCriterion("clothes_picture_set_id like", value, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdNotLike(String value) {
            addCriterion("clothes_picture_set_id not like", value, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdIn(List<String> values) {
            addCriterion("clothes_picture_set_id in", values, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdNotIn(List<String> values) {
            addCriterion("clothes_picture_set_id not in", values, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdBetween(String value1, String value2) {
            addCriterion("clothes_picture_set_id between", value1, value2, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesPictureSetIdNotBetween(String value1, String value2) {
            addCriterion("clothes_picture_set_id not between", value1, value2, "clothesPictureSetId");
            return (Criteria) this;
        }

        public Criteria andClothesNameIsNull() {
            addCriterion("clothes_name is null");
            return (Criteria) this;
        }

        public Criteria andClothesNameIsNotNull() {
            addCriterion("clothes_name is not null");
            return (Criteria) this;
        }

        public Criteria andClothesNameEqualTo(String value) {
            addCriterion("clothes_name =", value, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameNotEqualTo(String value) {
            addCriterion("clothes_name <>", value, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameGreaterThan(String value) {
            addCriterion("clothes_name >", value, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameGreaterThanOrEqualTo(String value) {
            addCriterion("clothes_name >=", value, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameLessThan(String value) {
            addCriterion("clothes_name <", value, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameLessThanOrEqualTo(String value) {
            addCriterion("clothes_name <=", value, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameLike(String value) {
            addCriterion("clothes_name like", value, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameNotLike(String value) {
            addCriterion("clothes_name not like", value, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameIn(List<String> values) {
            addCriterion("clothes_name in", values, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameNotIn(List<String> values) {
            addCriterion("clothes_name not in", values, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameBetween(String value1, String value2) {
            addCriterion("clothes_name between", value1, value2, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesNameNotBetween(String value1, String value2) {
            addCriterion("clothes_name not between", value1, value2, "clothesName");
            return (Criteria) this;
        }

        public Criteria andClothesGenderIsNull() {
            addCriterion("clothes_gender is null");
            return (Criteria) this;
        }

        public Criteria andClothesGenderIsNotNull() {
            addCriterion("clothes_gender is not null");
            return (Criteria) this;
        }

        public Criteria andClothesGenderEqualTo(Boolean value) {
            addCriterion("clothes_gender =", value, "clothesGender");
            return (Criteria) this;
        }

        public Criteria andClothesGenderNotEqualTo(Boolean value) {
            addCriterion("clothes_gender <>", value, "clothesGender");
            return (Criteria) this;
        }

        public Criteria andClothesGenderGreaterThan(Boolean value) {
            addCriterion("clothes_gender >", value, "clothesGender");
            return (Criteria) this;
        }

        public Criteria andClothesGenderGreaterThanOrEqualTo(Boolean value) {
            addCriterion("clothes_gender >=", value, "clothesGender");
            return (Criteria) this;
        }

        public Criteria andClothesGenderLessThan(Boolean value) {
            addCriterion("clothes_gender <", value, "clothesGender");
            return (Criteria) this;
        }

        public Criteria andClothesGenderLessThanOrEqualTo(Boolean value) {
            addCriterion("clothes_gender <=", value, "clothesGender");
            return (Criteria) this;
        }

        public Criteria andClothesGenderIn(List<Boolean> values) {
            addCriterion("clothes_gender in", values, "clothesGender");
            return (Criteria) this;
        }

        public Criteria andClothesGenderNotIn(List<Boolean> values) {
            addCriterion("clothes_gender not in", values, "clothesGender");
            return (Criteria) this;
        }

        public Criteria andClothesGenderBetween(Boolean value1, Boolean value2) {
            addCriterion("clothes_gender between", value1, value2, "clothesGender");
            return (Criteria) this;
        }

        public Criteria andClothesGenderNotBetween(Boolean value1, Boolean value2) {
            addCriterion("clothes_gender not between", value1, value2, "clothesGender");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedIsNull() {
            addCriterion("clothes_deleted is null");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedIsNotNull() {
            addCriterion("clothes_deleted is not null");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedEqualTo(Boolean value) {
            addCriterion("clothes_deleted =", value, "clothesDeleted");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedNotEqualTo(Boolean value) {
            addCriterion("clothes_deleted <>", value, "clothesDeleted");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedGreaterThan(Boolean value) {
            addCriterion("clothes_deleted >", value, "clothesDeleted");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("clothes_deleted >=", value, "clothesDeleted");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedLessThan(Boolean value) {
            addCriterion("clothes_deleted <", value, "clothesDeleted");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("clothes_deleted <=", value, "clothesDeleted");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedIn(List<Boolean> values) {
            addCriterion("clothes_deleted in", values, "clothesDeleted");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedNotIn(List<Boolean> values) {
            addCriterion("clothes_deleted not in", values, "clothesDeleted");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("clothes_deleted between", value1, value2, "clothesDeleted");
            return (Criteria) this;
        }

        public Criteria andClothesDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("clothes_deleted not between", value1, value2, "clothesDeleted");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}